const is = (type) => {
    return (value) => {
        return Object.prototype.toString.call(value) === `[object ${type}]`
    }
}
export const isArray = is("Array")
export const isObject = is("Object")
export const isString = is("String")
export const isNumber = is("Number")
export const isBoolean = is("Boolean")
export const isFunction = (value) => {
    return typeof value === "function"
}
export const isUndefined = (value) => {
    return value === undefined
}
export const isNull = (value) => {
    return value === null
}